﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TinyPMS_Jerusalem.ViewModels.PendingUserModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    待审核的用户
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        待审核的用户</h2>
    <table>
        <tr>
            <th>
                审核操作
            </th>
            <th>
                用户名
            </th>
            <th>
                电子邮箱地址
            </th>
            <th>
                姓名
            </th>
            <th>
                性别
            </th>
            <th>
                联系电话
            </th>
            <th>
                联系地址
            </th>
        </tr>
        <% if (Model != null)
           { %>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%= Html.ActionLink("审核通过", "ApproveUser", new { id = item.UserID.ToString() })%>
                |
                <%= Html.ActionLink("拒绝并删除用户", "DenyUser", new { id = item.UserID.ToString() })%>
                |
            </td>
            <td>
                <%= Html.Encode(item.UserName)%>
            </td>
            <td>
                <%= Html.Encode(item.Email)%>
            </td>
            <td>
                <%= Html.Encode(item.UserInfo.Name)%>
            </td>
            <td>
                <%= Html.Encode(item.UserInfo.Gender == false ? "男" : "女")%>
            </td>
            <td>
                <%= Html.Encode(item.UserInfo.Phone)%>
            </td>
            <td>
                <%= Html.Encode(item.UserInfo.Address)%>
            </td>
        </tr>
        <% } %>
        <% } %>
    </table>
</asp:Content>
